<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>heart哈哈哈</title>
        <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        html,body{
            width: 100%;
            height: 100%;
        }
        body{
            display:flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            background-color: pink;
        }
        .big-heart{
            width: 100px;
            height: 100px;
            background-color: greenyellow;
            position:relative;
            transform: rotate(45deg);
            animation: heartbit 1s alternate infinite;
        }
        .big-heart::before{
            content: "";
            width: 100px;
            height: 50px;
            background-color:greenyellow;
            position: absolute;
            left: 0px;
            top: -49px;
            border-radius: 50px 50px 0 0;
            
        }
        .big-heart::after{
            content: "";
            width: 50px;
            height: 100px;
            background-color:greenyellow;
            position: absolute;
            left: -49px;
            top: 0;
            border-radius: 50px 0px 0px 50px;
        }
        .heart{
            width: 200px;
            height: 200px;
            background-color: red;
            position:relative;
            transform: rotate(45deg);
            animation: heartbit 1s alternate infinite;
        }
        p{
            color: pink;
            transform:rotate(-45deg);
            font-size: 50px;
            font-family: Arial, sans-serif;
            text-shadow: 2px 2px 2px #FF0000,
                         4px 4px 2px #00FF00,
                         6px 6px 2px #0000FF;
        }
        .heart::before{
            content: "";
            position: absolute;
            width: 200px;
            height: 100px;
            background-color: red;
            top: -99px;
            left: 0px;
            border-radius: 100px 100px 0px 0px;
        }
        .heart::after{
            content: "";
            position: absolute;
            width: 100px;
            height: 200px;
            background-color: red;
            left: -99px;
            top: 0px;
            border-radius: 100px 0px 0px 100px;
        }
        @keyframes heartbit{
            0%{
                transform: rotate(45deg) scale(0.6);
            }
            100%{
                transform: rotate(45deg) scale(1.4);
            }
        }
    </style>
    </head>
    <body>
        <div class="big-heart">

        </div>
        <div class="heart">
            <!-- <p>傻逼</p> -->
        </div>
    </body>
</html>